import { CLIENT_TYPE, USER_TYPE, WX_REGISTER_TYPE } from "@/pd-libs/enum/pd-enum";
import { Constant } from "../constant";
import { PdHelp } from "../pd-help";

export default {
	//应用名称
	appName: '拼哒司机',
	appid: Constant.PDSJ_APPID,
	appConfigKeys: 'jiedanbao,driver_system_config,ad_channels,channel_rules_menus,autodispatch_driver_close_reason,driver_close_order_reason',//获取配置的keys
	client: CLIENT_TYPE.miniprog,
	userType: USER_TYPE.driver,
	wxRegisterType : WX_REGISTER_TYPE.driver,
	attentionArticleSrc: 'https://mp.weixin.qq.com/s/zTK2bWlwbq9UgwCPmWLF6w',//关注公众号文章
	configKeys: 'jiedanbao,driver_pinda_config,ad_channels',
	faceVerifyRuleId: '2',//人脸核身规则id
	tmpIds: {
		newOrder: ['98yQvXxf6bd2Ye06tSyqrrCVZLIKM6-BbHt6NNvkcKA','nJ4MAgnEXRrR0_mDiOGfCUhKDItQaiBea-gKzNbg69Q'],
		schuduleStart: ['15EzVgypZlOK-n_OHGPLc8TLUsyeMMyv4k6RUlajHzM'], //行程开始通知
		matchingVersions:['I6KyIjb1TJmAjwMId1Y-X6Rspk84pXUGyOELTqiVNWo','I6KyIjb1TJmAjwMId1Y-X6UvhTptMZxl5BgTKPu9AYY','I6KyIjb1TJmAjwMId1Y-X_0l4H5uGiWTBK3Q9wQIr-0f'],//自动抢单、手动抢单、车队派单
	},
	getAppDefaultshareConfig : function () {
		return {
			title : `${this.appName}-免费的城际司机接单工具`,
			path : 'pages/index/index',
			imageUrl : PdHelp.getCosImg('jiedanbao/shareImg.png')
		};
	},
	workWechatConfig: {//企微相关配置
		//企微客服配置
		serviceConfig: {
			url: 'https://work.weixin.qq.com/kfid/kfc3604da9fed89c389',
			corpId: 'ww19c2cc0f556faa92'
		}
	},
	//行程规划插件配置
	routePluginConfig : {
		appName : '拼哒司机',
		key : 'FU7BZ-ZSNKQ-BFA5R-G3OXH-RDFMS-M2BOQ'
	},
	//前置授权项
	preAuthItems: [
		{//持续定位授权
			type: 'scope.userLocationBackground',
			title: '允许持续获取定位',
			desc: '同步司机位置信息给乘客',
			status: false,
			btnConfig: {
				text: '去开启'
			},
			point : 'function_getlocation_240223'
		}, {//录音权限
			type: 'scope.record',
			title: '允许授权麦克风录音功能',
			desc: '行程中持续进行录音保护',
			status: false,
			btnConfig: {
				text: '去开启'
			},
			point : 'function_getvoice_240223'
		}, {//是否关注公众号
			type: 'isAttention',
			title: '关注公众号',
			desc: '计时接收订单消息',
			status: false,
			btnConfig: {
				text: '去关注'
			},
			point : 'function_getfollow_240223'
		}, {//是否完成了接单规则学习
			type: 'isRulesRead',
			title: '学习接单规则',
			desc: '平台禁止索要电话和线下交易',
			status: false,
			btnConfig: {
				text: '去学习'
			},
			point : 'funcion_learn_240223'
		}
	],
};